<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:rich="http://richfaces.org/rich"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"> 

<h:head></h:head> 
<h:body>
	<rich:panel>
		<f:facet name="Header">
			<h:outputText value="Catalog Item" />
		</f:facet>
		<h:form>
			<rich:dataGrid value="#{catalogPagesController.catalogItemList}"
				var="listItem" columns="3" width="600px" border="0">
				<rich:panel>
					<f:facet name="Header">
						CatalogItem Grid
					</f:facet>
					<h:panelGrid columns="2">
					Product Name:<h:outputText value="#{listItem.product.name}" />
					Currency:<h:outputText value="#{listItem.currency}" />
					Price:<h:outputText value="#{listItem.price}" />
					Status:<h:outputText value="#{listItem.status}" />
					Supplier:<h:outputText value="#{listItem.supplierId}" />
						<h:commandLink
							action="#{catalogPagesController.getCatalogItemDetailBuyerView}"
							value="Details">
							<f:param name="id" value="#{listItem.catalogItemId}"></f:param>
						</h:commandLink>
					</h:panelGrid>
				</rich:panel>
			</rich:dataGrid>
		</h:form>
	</rich:panel>>
</h:body> 
</html>
